#ifndef EARTH3DVIEW_H_H
#define EARTH3DVIEW_H_H

#include <QObject>
#include <amk3/OsgGraphicView.h>

class Earth3DView : public OsgGraphicView
{
    Q_OBJECT
public:

    Earth3DView();

    // OsgGraphicView interface
public:
    void init();
    virtual void render();

	void getCameraPosition();
	void setCameraPose(osg::Vec3 pos, osg::Vec3 hpr);
signals:
    //void closeChildMenu();
    //void signalCloseAnnoInfo();
    //void singlInted();//环境准备完成
    ////当前显示的AQI时间变化
    //void signalAQITimeChanged(QString);
    ////void signalCityRanking();
    ////void signalShowAnnoInfo();
    ////void signalShowPsInfo();
	void signalShowMessage(QString);
public slots:
    void slotStereo();
    void slotGotoHenan();
    void slotGotoHome();
    void slotSceneInited();

    void registerQMLProperty(const QString & name, const QVariant& value);
protected:
    bool _stereo;


    virtual void mousePressEvent(QMouseEvent *);
    virtual void mouseReleaseEvent(QMouseEvent *);
    virtual void mouseDoubleClickEvent(QMouseEvent *);
    virtual void mouseMoveEvent(QMouseEvent *);
    //virtual void wheelEvent(QWheelEvent *);
    virtual void keyPressEvent(QKeyEvent *);

	void resizeEvent(QResizeEvent *);

};



#endif // EARTH3DVIEW_H
